.class public Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;
.super Lcom/burstly/lib/component/networkcomponent/AbstractAdaptorFactory;
.source "MillennialAdaptorFactory.java"


# static fields
.field private static final FULL_CLASS_NAME:Ljava/lang/String; = "com.millennialmedia.android.MMAdView"

.field private static final MILLENNIAL_MANDATORY_ACTIVITIES:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final MILLENNIAL_MANDATORY_PERMISSIONS:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final MILLENNIAL_OPTIONAL_PERMISSIONS:Ljava/util/List; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static final NETWORK_NAME:Ljava/lang/String; = "millennial"


# direct methods
.method static constructor <clinit>()V
    .locals 5

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 53
    new-array v0, v4, [Ljava/lang/String;

    const-string v1, "com.millennialmedia.android.MMActivity"

    aput-object v1, v0, v2

    const-string v1, "com.millennialmedia.android.VideoPlayer"

    aput-object v1, v0, v3

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_MANDATORY_ACTIVITIES:Ljava/util/List;

    .line 59
    const/4 v0, 0x3

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "android.permission.INTERNET"

    aput-object v1, v0, v2

    const-string v1, "android.permission.ACCESS_NETWORK_STATE"

    aput-object v1, v0, v3

    const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"

    aput-object v1, v0, v4

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_MANDATORY_PERMISSIONS:Ljava/util/List;

    .line 65
    new-array v0, v3, [Ljava/lang/String;

    const-string v1, "android.permission.READ_PHONE_STATE"

    aput-object v1, v0, v2

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_OPTIONAL_PERMISSIONS:Ljava/util/List;

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    .line 71
    const-string v0, "com.millennialmedia.android.MMAdView"

    const-class v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lcom/burstly/lib/component/networkcomponent/AbstractAdaptorFactory;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 72
    return-void
.end method


# virtual methods
.method protected createInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/burstly/lib/component/IBurstlyAdaptor;
    .locals 1
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 76
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    invoke-direct {v0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    return-object v0
.end method

.method public initialize(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 89
    .local p1, initParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/AbstractAdaptorFactory;->initialize(Ljava/util/Map;)V

    .line 90
    const-string v0, "context"

    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    invoke-static {v0}, Lcom/millennialmedia/android/MMSDK;->initialize(Landroid/content/Context;)V

    .line 91
    const/4 v0, 0x1

    invoke-static {v0}, Lcom/millennialmedia/android/MMSDK;->setBroadcastEvents(Z)V

    .line 92
    return-void
.end method

.method public validateManifest()Lcom/burstly/lib/util/ManifestValidator$ValidationResults;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/content/pm/PackageManager$NameNotFoundException;
        }
    .end annotation

    .prologue
    .line 81
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_MANDATORY_ACTIVITIES:Ljava/util/List;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_MANDATORY_PERMISSIONS:Ljava/util/List;

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptorFactory;->MILLENNIAL_OPTIONAL_PERMISSIONS:Ljava/util/List;

    invoke-static {v1, v2, v3}, Lcom/burstly/lib/util/ManifestValidator;->customValidate(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Lcom/burstly/lib/util/ManifestValidator$ValidationResults;

    move-result-object v0

    .line 83
    .local v0, results:Lcom/burstly/lib/util/ManifestValidator$ValidationResults;
    const-string v1, "millennial"

    invoke-virtual {v0, v1}, Lcom/burstly/lib/util/ManifestValidator$ValidationResults;->setNetworkName(Ljava/lang/String;)V

    .line 84
    return-object v0
.end method
